package com.lhy.wallet.mapper;

import com.lhy.wallet.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: 卢辉宇
 * @date: 2023/3/10 16:06
 * @description:
 */
@Mapper
public interface UserMapper {
    User selectRemainder(Integer userId);

    int consume(@Param("userId") Integer userId, @Param("amount") Double amount);
}
